import Vue from 'vue'
import App from './App.vue'
import axios from "axios"
import vant from './tools/vant'
import router from "./tools/router"
import VueLazyload from 'vue-lazyload'

Vue.config.productionTip = false
Vue.prototype.axios = axios
Vue.prototype.$url = 'http://localhost:3000/'
// Vue.prototype.$url = 'http://47.117.121.44:3000/'
// Vue.prototype.$url = 'http://www.tuqi.online:3000/'
Vue.use(VueLazyload, {
  error: require('../src/assets/img/jz.png'),//这个是请求失败后显示的图片
  loading: require('../src/assets/img/jz.png'),//这个是加载等待图片
  attempt: 1 // 尝试次数
})
new Vue({
  router,
  vant,
  render: h => h(App),
}).$mount('#app')
